package net.halflite.mzkr.action.home;

import java.util.Map;

import javax.annotation.Resource;

import net.halflite.mzkr.annotation.Login;
import net.halflite.mzkr.dto.user.UserDto;
import net.halflite.mzkr.type.LoginType;

/** ログイン済みの基底アクションクラス */
@Login(LoginType.USER)
public abstract class LoginedBaseAction {

	@Resource
	protected Map<String, Object> sessionScope;
	
	public long findUserId() {
		UserDto user = (UserDto) sessionScope.get("user");
		return user.id;
	}
}
